Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add write-coalesing to atx handling #6239

Closed
wants to merge 3 commits into from
Closed

Conversation

acud
Copy link
Contributor

@acud acud commented Aug 9, 2024

Motivation

Adds write-coalescing to leaf-atxs (that have no dependecies) written to DB from gossip and sync handlers without discrimination.

Description

WIP.
Adds support for write coalescing for ATXs coming in from gossip or sync. Right now trying to handle the case of ATXs that have no dependencies that need to be fetched from other peers simply due to the complexity of handling the other case, but hopefully I could manage to handle both cases in this PR.

Test Plan

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@acud acud force-pushed the write-coalesce-atxs branch from 96f52f0 to 23c07c0 Compare August 9, 2024 21:09
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

Attention: Patch coverage is 86.73469% with 13 lines in your changes missing coverage. Please review.

Project coverage is 82.1%. Comparing base (16d8ac9) to head (7bbd507).

Files Patch % Lines
activation/handler_v1.go 85.7% 11 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #6239   +/-   ##
=======================================
  Coverage     82.1%   82.1%           
=======================================
  Files          308     308           
  Lines        34123   34211   +88     
=======================================
+ Hits         28026   28109   +83     
- Misses        4321    4327    +6     
+ Partials      1776    1775    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acud acud force-pushed the write-coalesce-atxs branch from 2d87b5f to 7bbd507 Compare August 9, 2024 22:25
@acud
Copy link
Contributor Author

acud commented Aug 14, 2024

closing in favor of #6257

@acud acud closed this Aug 14, 2024
@acud acud deleted the write-coalesce-atxs branch August 14, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant